<?php 
session_start();
error_reporting(E_ALL && ~ E_NOTICE);
include '../../db/dbConnect.php';
include '../function/helper.php';
if($_SERVER['REQUEST_METHOD']=="GET"){
	$iduser=$_SESSION['LoginData']['iduser'];
	$idquestion=escape($_GET['idquestion']);
	$idanswer=escape($_GET['idanswer']);
	$level=escape($_GET['level']);
	//$explain=mysql_real_escape_string($_GET['re_exp']);
	
	$sql='insert into u_quest_answer set
				idanswer="'.$idanswer.'",
				level="'.$level.'",
				idquestion='.$idquestion.',
				iduser='.$iduser.'';
	if(mysql_query($sql)){
		echo "You have just completed one more question!";
	}else{
		echo "Please try again! ".mysql_error();
	}// explain="'.$explain.'", 
}
?>